package com.geostar.gmp.model;

import com.geostar.gmp.utils.CreateID;
import com.geostar.gmp.utils.DateUtils;

/**
 * 文件名:Pc_data.java
 * 功能: 存放电脑状态POJO
 * 目前支持方法
 * --------------------------------------
 * 初始版本 
 * 作者: yesong
 * 时间: Apr 4, 2014
 */
public class Pc_data {

	/** id **/
	private String id;
	
	/** 电脑IP **/
	private String ip;
	
	/** cpu利用率 **/
	private String cpu;
	
	/** 内存利用率 **/
	private String rom;
	
	/** 硬盘利用率 **/
	private String disk;
	
	/** 网络连接状态 **/
	private String net;
	
	/** 记录时间 **/
	private String record_time;
	
	/** 查询时间段开始时间 **/
	private String start_time;
	
	/** 查询时间段结束时间 **/
	private String end_time;

	public Pc_data(){
	}
	
	public Pc_data(String ip,String cpu,String rom,String disk,String net){
		this.id = CreateID.generate9();
		this.ip = ip;
		this.cpu = cpu;
		this.rom = rom;
		this.disk = disk;
		this.net = disk;
		this.record_time = DateUtils.getLongTime();
	}
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public String getCpu() {
		return cpu;
	}

	public void setCpu(String cpu) {
		this.cpu = cpu;
	}

	public String getRom() {
		return rom;
	}

	public void setRom(String rom) {
		this.rom = rom;
	}

	public String getDisk() {
		return disk;
	}

	public void setDisk(String disk) {
		this.disk = disk;
	}

	public String getNet() {
		return net;
	}

	public void setNet(String net) {
		this.net = net;
	}

	public String getRecord_time() {
		return record_time;
	}

	public void setRecord_time(String record_time) {
		this.record_time = record_time;
	}

	public String getStart_time() {
		return start_time;
	}

	public void setStart_time(String start_time) {
		this.start_time = start_time;
	}

	public String getEnd_time() {
		return end_time;
	}

	public void setEnd_time(String end_time) {
		this.end_time = end_time;
	}
}
